<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生信息</title>
</head>
<body>
    <script>
        var student = {
            name: '张三',
            age: 18,
            sex: '男',
            studentID: '8008208820',
            cardID: '20200616',
            major: '计算机专业',
            show: function(){
                console.log(this.name,this.age,this.sex,this.studentID,this.cardID,this.major)
            }
        }
        student.show();
    </script>

</body>
</html>